# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 21:34
# @Author  : feng
# @Email   : feng@163.com
# @File    : edit_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.login_page import LoginPage
from pages.base_page import BasePage
from selenium.webdriver.support.select import Select
from time import sleep

class EditPage(BasePage):
    '''进入商机页面'''
    url='http://192.168.1.5:8081/crm/index.php?m=business&a=edit&id=4'
    '''定位器'''

    fjxx_locator=(By.CSS_SELECTOR,'#description')

    bc_locator=(By.NAME,'submit')

    def send_fjxx(self,name):
        self.driver.find_element(*self.fjxx_locator).send_keys(name)

    def click_bc(self):
        self.driver.find_element(*self.bc_locator).click()

